home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / rules.mak < prev    next >
Text File  |  2000-05-18  |  23KB  |  776 lines

  1. # List of CPU core (and, for a debug build, disassembler) object files
  2.  
  3. CPU=$(strip $(findstring Z80@,$(CPUS)))
  4. ifneq ($(CPU),)
  5. CPUDEFS += -DHAS_Z80=1
  6. CPUOBJS += $(OBJ)/cpu/z80/z80.o
  7. DBGOBJS += $(OBJ)/cpu/z80/z80dasm.o
  8. $(OBJ)/cpu/z80/z80.o: z80.c z80.h z80daa.h
  9. endif
  10.  
  11. CPU=$(strip $(findstring Z80GB@,$(CPUS)))
  12. ifneq ($(CPU),)
  13. CPUDEFS += -DHAS_Z80GB=1
  14. CPUOBJS += $(OBJ)/cpu/z80gb/z80gb.o
  15. DBGOBJS += $(OBJ)/cpu/z80gb/z80gbd.o
  16. $(OBJ)/cpu/z80gb/z80gb.o: z80gb.c z80gb.h daa_tab.h opc_cb.h opc_main.h
  17. endif
  18.  
  19. CPU=$(strip $(findstring 8080@,$(CPUS)))
  20. ifneq ($(CPU),)
  21. CPUDEFS += -DHAS_8080=1
  22. CPUOBJS += $(OBJ)/cpu/i8085/i8085.o
  23. DBGOBJS += $(OBJ)/cpu/i8085/8085dasm.o
  24. $(OBJ)/cpu/i8085/i8085.o: i8085.c i8085.h i8085cpu.h i8085daa.h
  25. endif
  26.  
  27. CPU=$(strip $(findstring 8085A@,$(CPUS)))
  28. ifneq ($(CPU),)
  29. CPUDEFS += -DHAS_8085A=1
  30. CPUOBJS += $(OBJ)/cpu/i8085/i8085.o
  31. DBGOBJS += $(OBJ)/cpu/i8085/8085dasm.o
  32. $(OBJ)/cpu/i8085/i8085.o: i8085.c i8085.h i8085cpu.h i8085daa.h
  33. endif
  34.  
  35. CPU=$(strip $(findstring M6502@,$(CPUS)))
  36. ifneq ($(CPU),)
  37. CPUDEFS += -DHAS_M6502=1
  38. CPUOBJS += $(OBJ)/cpu/m6502/m6502.o
  39. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  40. $(OBJ)/cpu/m6502/m6502.o: m6502.c m6502.h ops02.h t6502.c t65c02.c t65sc02.c t6510.c
  41. endif
  42.  
  43. CPU=$(strip $(findstring M65C02@,$(CPUS)))
  44. ifneq ($(CPU),)
  45. CPUDEFS += -DHAS_M65C02=1
  46. CPUOBJS += $(OBJ)/cpu/m6502/m6502.o
  47. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  48. $(OBJ)/cpu/m6502/m6502.o: m6502.c m6502.h ops02.h t6502.c t65c02.c t65sc02.c t6510.c
  49. endif
  50.  
  51. CPU=$(strip $(findstring M65SC02@,$(CPUS)))
  52. ifneq ($(CPU),)
  53. CPUDEFS += -DHAS_M65SC02=1
  54. CPUOBJS += $(OBJ)/cpu/m6502/m6502.o
  55. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  56. $(OBJ)/cpu/m6502/m6502.o: m6502.c m6502.h ops02.h t6502.c t65c02.c t65sc02.c t6510.c
  57. endif
  58.  
  59. CPU=$(strip $(findstring M65CE02@,$(CPUS)))
  60. ifneq ($(CPU),)
  61. CPUDEFS += -DHAS_M65CE02=1
  62. CPUOBJS += $(OBJ)/cpu/m6502/m65ce02.o
  63. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  64. $(OBJ)/cpu/m6502/m65ce02.o: m65ce02.c m65ce02.h opsce02.h t65ce02.c
  65. endif
  66.  
  67. CPU=$(strip $(findstring M6509@,$(CPUS)))
  68. ifneq ($(CPU),)
  69. CPUDEFS += -DHAS_M6509=1
  70. CPUOBJS += $(OBJ)/cpu/m6502/m6509.o
  71. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  72. $(OBJ)/cpu/m6502/m6509.o: m6509.c m6509.h ops09.h t6509.c
  73. endif
  74.  
  75. CPU=$(strip $(findstring M6510@,$(CPUS)))
  76. ifneq ($(CPU),)
  77. CPUDEFS += -DHAS_M6510=1
  78. CPUOBJS += $(OBJ)/cpu/m6502/m6502.o
  79. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  80. $(OBJ)/cpu/m6502/m6502.o: m6502.c m6502.h ops02.h t6502.c t65c02.c t65sc02.c t6510.c
  81. endif
  82.  
  83. CPU=$(strip $(findstring M6510T@,$(CPUS)))
  84. ifneq ($(CPU),)
  85. CPUDEFS += -DHAS_M6510=1 -DHAS_M6510T=1
  86. CPUOBJS += $(OBJ)/cpu/m6502/m6502.o
  87. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  88. $(OBJ)/cpu/m6502/m6502.o: m6502.c m6502.h ops02.h t6502.c t65c02.c t65sc02.c t6510.c
  89. endif
  90.  
  91. CPU=$(strip $(findstring M7501@,$(CPUS)))
  92. ifneq ($(CPU),)
  93. CPUDEFS += -DHAS_M6510=1 -DHAS_M7501=1
  94. CPUOBJS += $(OBJ)/cpu/m6502/m6502.o
  95. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  96. $(OBJ)/cpu/m6502/m6502.o: m6502.c m6502.h ops02.h t6502.c t65c02.c t65sc02.c t6510.c
  97. endif
  98.  
  99. CPU=$(strip $(findstring M8502@,$(CPUS)))
  100. ifneq ($(CPU),)
  101. CPUDEFS += -DHAS_M6510=1 -DHAS_M8502=1
  102. CPUOBJS += $(OBJ)/cpu/m6502/m6502.o
  103. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  104. $(OBJ)/cpu/m6502/m6502.o: m6502.c m6502.h ops02.h t6502.c t65c02.c t65sc02.c t6510.c
  105. endif
  106.  
  107. CPU=$(strip $(findstring N2A03@,$(CPUS)))
  108. ifneq ($(CPU),)
  109. CPUDEFS += -DHAS_N2A03=1
  110. CPUOBJS += $(OBJ)/cpu/m6502/m6502.o
  111. DBGOBJS += $(OBJ)/cpu/m6502/6502dasm.o
  112. $(OBJ)/cpu/m6502/m6502.o: m6502.c m6502.h ops02.h t6502.c t65c02.c t65sc02.c t6510.c
  113. endif
  114.  
  115. CPU=$(strip $(findstring H6280@,$(CPUS)))
  116. ifneq ($(CPU),)
  117. CPUDEFS += -DHAS_H6280=1
  118. CPUOBJS += $(OBJ)/cpu/h6280/h6280.o
  119. DBGOBJS += $(OBJ)/cpu/h6280/6280dasm.o
  120. $(OBJ)/cpu/h6280/h6280.o: h6280.c h6280.h h6280ops.h tblh6280.c
  121. endif
  122.  
  123. CPU=$(strip $(findstring I86@,$(CPUS)))
  124. ifneq ($(CPU),)
  125. CPUDEFS += -DHAS_I86=1
  126. CPUOBJS += $(OBJ)/cpu/i86/i86.o
  127. DBGOBJS += $(OBJ)/cpu/i86/i86dasm.o
  128. $(OBJ)/cpu/i86/i86.o: i86.c instr86.c i86.h i86intf.h ea.h host.h modrm.h
  129. endif
  130.  
  131. CPU=$(strip $(findstring I88@,$(CPUS)))
  132. ifneq ($(CPU),)
  133. CPUDEFS += -DHAS_I88=1
  134. CPUOBJS += $(OBJ)/cpu/i86/i86.o
  135. DBGOBJS += $(OBJ)/cpu/i86/i86dasm.o
  136. $(OBJ)/cpu/i86/i86.o: i86.c instr86.c i86.h i86intf.h ea.h host.h modrm.h
  137. endif
  138.  
  139. CPU=$(strip $(findstring I186@,$(CPUS)))
  140. ifneq ($(CPU),)
  141. CPUDEFS += -DHAS_I186=1
  142. CPUOBJS += $(OBJ)/cpu/i86/i86.o
  143. DBGOBJS += $(OBJ)/cpu/i86/i86dasm.o
  144. $(OBJ)/cpu/i86/i86.o: i86.c instr186.c i86.h i186intf.h ea.h host.h modrm.h
  145. endif
  146.  
  147. CPU=$(strip $(findstring I188@,$(CPUS)))
  148. ifneq ($(CPU),)
  149. CPUDEFS += -DHAS_I188=1
  150. CPUOBJS += $(OBJ)/cpu/i86/i86.o
  151. DBGOBJS += $(OBJ)/cpu/i86/i86dasm.o
  152. $(OBJ)/cpu/i86/i86.o: i86.c instr186.c i86.h i186intf.h ea.h host.h modrm.h
  153. endif
  154.  
  155. CPU=$(strip $(findstring I286@,$(CPUS)))
  156. ifneq ($(CPU),)
  157. CPUDEFS += -DHAS_I286=1
  158. CPUOBJS += $(OBJ)/cpu/i86/i286.o
  159. DBGOBJS += $(OBJ)/cpu/i86/i86dasm.o
  160. $(OBJ)/cpu/i86/i86.o: i86.c instr286.c i86.h i286intf.h ea.h host.h modrm.h
  161. endif
  162.  
  163. CPU=$(strip $(findstring V20@,$(CPUS)))
  164. ifneq ($(CPU),)
  165. CPUDEFS += -DHAS_V20=1
  166. CPUOBJS += $(OBJ)/cpu/nec/nec.o
  167. DBGOBJS += $(OBJ)/cpu/nec/necdasm.o
  168. $(OBJ)/cpu/nec/nec.o: nec.c nec.h necintrf.h necea.h nechost.h necinstr.h necmodrm.h
  169. endif
  170.  
  171. CPU=$(strip $(findstring V30@,$(CPUS)))
  172. ifneq ($(CPU),)
  173. CPUDEFS += -DHAS_V30=1
  174. CPUOBJS += $(OBJ)/cpu/nec/nec.o
  175. DBGOBJS += $(OBJ)/cpu/nec/necdasm.o
  176. $(OBJ)/cpu/nec/nec.o: nec.c nec.h necintrf.h necea.h nechost.h necinstr.h necmodrm.h
  177. endif
  178.  
  179. CPU=$(strip $(findstring V33@,$(CPUS)))
  180. ifneq ($(CPU),)
  181. CPUDEFS += -DHAS_V33=1
  182. CPUOBJS += $(OBJ)/cpu/nec/nec.o
  183. DBGOBJS += $(OBJ)/cpu/nec/necdasm.o
  184. $(OBJ)/cpu/nec/nec.o: nec.c nec.h necintrf.h necea.h nechost.h necinstr.h necmodrm.h
  185. endif
  186.  
  187. CPU=$(strip $(findstring I8035@,$(CPUS)))
  188. ifneq ($(CPU),)
  189. CPUDEFS += -DHAS_I8035=1
  190. CPUOBJS += $(OBJ)/cpu/i8039/i8039.o
  191. DBGOBJS += $(OBJ)/cpu/i8039/8039dasm.o
  192. $(OBJ)/cpu/i8039/i8039.o: i8039.c i8039.h
  193. endif
  194.  
  195. CPU=$(strip $(findstring I8039@,$(CPUS)))
  196. ifneq ($(CPU),)
  197. CPUDEFS += -DHAS_I8039=1
  198. CPUOBJS += $(OBJ)/cpu/i8039/i8039.o
  199. DBGOBJS += $(OBJ)/cpu/i8039/8039dasm.o
  200. $(OBJ)/cpu/i8039/i8039.o: i8039.c i8039.h
  201. endif
  202.  
  203. CPU=$(strip $(findstring I8048@,$(CPUS)))
  204. ifneq ($(CPU),)
  205. CPUDEFS += -DHAS_I8048=1
  206. CPUOBJS += $(OBJ)/cpu/i8039/i8039.o
  207. DBGOBJS += $(OBJ)/cpu/i8039/8039dasm.o
  208. $(OBJ)/cpu/i8039/i8039.o: i8039.c i8039.h
  209. endif
  210.  
  211. CPU=$(strip $(findstring N7751@,$(CPUS)))
  212. ifneq ($(CPU),)
  213. CPUDEFS += -DHAS_N7751=1
  214. CPUOBJS += $(OBJ)/cpu/i8039/i8039.o
  215. DBGOBJS += $(OBJ)/cpu/i8039/8039dasm.o
  216. $(OBJ)/cpu/i8039/i8039.o: i8039.c i8039.h
  217. endif
  218.  
  219. CPU=$(strip $(findstring M6800@,$(CPUS)))
  220. ifneq ($(CPU),)
  221. CPUDEFS += -DHAS_M6800=1
  222. CPUOBJS += $(OBJ)/cpu/m6800/m6800.o
  223. DBGOBJS += $(OBJ)/cpu/m6800/6800dasm.o
  224. $(OBJ)/cpu/m6800/m6800.o: m6800.c m6800.h 6800ops.c 6800tbl.c
  225. endif
  226.  
  227. CPU=$(strip $(findstring M6801@,$(CPUS)))
  228. ifneq ($(CPU),)
  229. CPUDEFS += -DHAS_M6801=1
  230. CPUOBJS += $(OBJ)/cpu/m6800/m6800.o
  231. DBGOBJS += $(OBJ)/cpu/m6800/6800dasm.o
  232. $(OBJ)/cpu/m6800/m6800.o: m6800.c m6800.h 6800ops.c 6800tbl.c
  233. endif
  234.  
  235. CPU=$(strip $(findstring M6802@,$(CPUS)))
  236. ifneq ($(CPU),)
  237. CPUDEFS += -DHAS_M6802=1
  238. CPUOBJS += $(OBJ)/cpu/m6800/m6800.o
  239. DBGOBJS += $(OBJ)/cpu/m6800/6800dasm.o
  240. $(OBJ)/cpu/m6800/m6800.o: m6800.c m6800.h 6800ops.c 6800tbl.c
  241. endif
  242.  
  243. CPU=$(strip $(findstring M6803@,$(CPUS)))
  244. ifneq ($(CPU),)
  245. CPUDEFS += -DHAS_M6803=1
  246. CPUOBJS += $(OBJ)/cpu/m6800/m6800.o
  247. DBGOBJS += $(OBJ)/cpu/m6800/6800dasm.o
  248. $(OBJ)/cpu/m6800/m6800.o: m6800.c m6800.h 6800ops.c 6800tbl.c
  249. endif
  250.  
  251. CPU=$(strip $(findstring M6808@,$(CPUS)))
  252. ifneq ($(CPU),)
  253. CPUDEFS += -DHAS_M6808=1
  254. CPUOBJS += $(OBJ)/cpu/m6800/m6800.o
  255. DBGOBJS += $(OBJ)/cpu/m6800/6800dasm.o
  256. $(OBJ)/cpu/m6800/m6800.o: m6800.c m6800.h 6800ops.c 6800tbl.c
  257. endif
  258.  
  259. CPU=$(strip $(findstring HD63701@,$(CPUS)))
  260. ifneq ($(CPU),)
  261. CPUDEFS += -DHAS_HD63701=1
  262. CPUOBJS += $(OBJ)/cpu/m6800/m6800.o
  263. DBGOBJS += $(OBJ)/cpu/m6800/6800dasm.o
  264. $(OBJ)/cpu/m6800/m6800.o: m6800.c m6800.h 6800ops.c 6800tbl.c
  265. endif
  266.  
  267. CPU=$(strip $(findstring NSC8105@,$(CPUS)))
  268. ifneq ($(CPU),)
  269. CPUDEFS += -DHAS_NSC8105=1
  270. CPUOBJS += $(OBJ)/cpu/m6800/m6800.o
  271. DBGOBJS += $(OBJ)/cpu/m6800/6800dasm.o
  272. $(OBJ)/cpu/m6800/m6800.o: m6800.c m6800.h 6800ops.c 6800tbl.c
  273. endif
  274.  
  275. CPU=$(strip $(findstring M6805@,$(CPUS)))
  276. ifneq ($(CPU),)
  277. CPUDEFS += -DHAS_M6805=1
  278. CPUOBJS += $(OBJ)/cpu/m6805/m6805.o
  279. DBGOBJS += $(OBJ)/cpu/m6805/6805dasm.o
  280. $(OBJ)/cpu/m6805/m6805.o: m6805.c m6805.h 6805ops.c
  281. endif
  282.  
  283. CPU=$(strip $(findstring M68705@,$(CPUS)))
  284. ifneq ($(CPU),)
  285. CPUDEFS += -DHAS_M68705=1
  286. CPUOBJS += $(OBJ)/cpu/m6805/m6805.o
  287. DBGOBJS += $(OBJ)/cpu/m6805/6805dasm.o
  288. $(OBJ)/cpu/m6805/m6805.o: m6805.c m6805.h 6805ops.c
  289. endif
  290.  
  291. CPU=$(strip $(findstring HD63705@,$(CPUS)))
  292. ifneq ($(CPU),)
  293. CPUDEFS += -DHAS_HD63705=1
  294. CPUOBJS += $(OBJ)/cpu/m6805/m6805.o
  295. DBGOBJS += $(OBJ)/cpu/m6805/6805dasm.o
  296. $(OBJ)/cpu/m6805/m6805.o: m6805.c m6805.h 6805ops.c
  297. endif
  298.  
  299. CPU=$(strip $(findstring HD6309@,$(CPUS)))
  300. ifneq ($(CPU),)
  301. CPUDEFS += -DHAS_HD6309=1
  302. CPUOBJS += $(OBJ)/cpu/m6809/m6809.o
  303. DBGOBJS += $(OBJ)/cpu/m6809/6809dasm.o
  304. $(OBJ)/cpu/m6809/m6809.o: m6809.c m6809.h 6809ops.c 6809tbl.c
  305. endif
  306.  
  307. CPU=$(strip $(findstring M6809@,$(CPUS)))
  308. ifneq ($(CPU),)
  309. CPUDEFS += -DHAS_M6809=1
  310. CPUOBJS += $(OBJ)/cpu/m6809/m6809.o
  311. DBGOBJS += $(OBJ)/cpu/m6809/6809dasm.o
  312. $(OBJ)/cpu/m6809/m6809.o: m6809.c m6809.h 6809ops.c 6809tbl.c
  313. endif
  314.  
  315. CPU=$(strip $(findstring KONAMI@,$(CPUS)))
  316. ifneq ($(CPU),)
  317. CPUDEFS += -DHAS_KONAMI=1
  318. CPUOBJS += $(OBJ)/cpu/konami/konami.o
  319. DBGOBJS += $(OBJ)/cpu/konami/knmidasm.o
  320. $(OBJ)/cpu/konami/konami.o: konami.c konami.h konamops.c konamtbl.c
  321. endif
  322.  
  323. CPU=$(strip $(findstring M68000@,$(CPUS)))
  324. ifneq ($(CPU),)
  325. CPUDEFS += -DHAS_M68000=1
  326. ifdef X86_ASM_68K
  327. CPUOBJS += $(OBJ)/cpu/m68000/asmintf.o $(OBJ)/cpu/m68000/68kem.o
  328. ASMDEFS += -DA68KEM
  329. $(OBJ)/cpu/m68000/68kem.o: $(OBJ)/cpu/m68000/68kem.asm make68k.c
  330. else
  331. M68000_GENERATED_OBJS = \
  332. $(OBJ)/cpu/m68000/m68kops.o $(OBJ)/cpu/m68000/m68kopac.o \
  333. $(OBJ)/cpu/m68000/m68kopdm.o $(OBJ)/cpu/m68000/m68kopnz.o
  334. CPUOBJS += $(M68000_GENERATED_OBJS) $(OBJ)/cpu/m68000/m68kcpu.o $(OBJ)/cpu/m68000/m68kmame.o
  335. endif
  336. DBGOBJS += $(OBJ)/cpu/m68000/d68k.o
  337. endif
  338.  
  339. CPU=$(strip $(findstring M68010@,$(CPUS)))
  340. ifneq ($(CPU),)
  341. CPUDEFS += -DHAS_M68010=1
  342. ifdef X86_ASM_68K
  343. CPUOBJS += $(OBJ)/cpu/m68000/asmintf.o $(OBJ)/cpu/m68000/68kem.o
  344. ASMDEFS += -DA68KEM
  345. $(OBJ)/cpu/m68000/68kem.o: $(OBJ)/cpu/m68000/68kem.asm make68k.c
  346. else
  347. M68000_GENERATED_OBJS = \
  348. $(OBJ)/cpu/m68000/m68kops.o $(OBJ)/cpu/m68000/m68kopac.o \
  349. $(OBJ)/cpu/m68000/m68kopdm.o $(OBJ)/cpu/m68000/m68kopnz.o
  350. CPUOBJS += $(M68000_GENERATED_OBJS) $(OBJ)/cpu/m68000/m68kcpu.o $(OBJ)/cpu/m68000/m68kmame.o
  351. endif
  352. DBGOBJS += $(OBJ)/cpu/m68000/d68k.o
  353. endif
  354.  
  355. CPU=$(strip $(findstring M68EC020@,$(CPUS)))
  356. ifneq ($(CPU),)
  357. CPUDEFS += -DHAS_M68EC020=1
  358. ifdef X86_ASM_68K
  359. CPUOBJS += $(OBJ)/cpu/m68000/asmintf.o $(OBJ)/cpu/m68000/68kem.o
  360. ASMDEFS += -DA68KEM
  361. $(OBJ)/cpu/m68000/68kem.o: $(OBJ)/cpu/m68000/68kem.asm make68k.c
  362. else
  363. M68000_GENERATED_OBJS = \
  364. $(OBJ)/cpu/m68000/m68kops.o $(OBJ)/cpu/m68000/m68kopac.o \
  365. $(OBJ)/cpu/m68000/m68kopdm.o $(OBJ)/cpu/m68000/m68kopnz.o
  366. CPUOBJS += $(M68000_GENERATED_OBJS) $(OBJ)/cpu/m68000/m68kcpu.o $(OBJ)/cpu/m68000/m68kmame.o
  367. endif
  368. DBGOBJS += $(OBJ)/cpu/m68000/d68k.o
  369. endif
  370.  
  371. CPU=$(strip $(findstring M68020@,$(CPUS)))
  372. ifneq ($(CPU),)
  373. CPUDEFS += -DHAS_M68020=1
  374. ifdef X86_ASM_68K
  375. CPUOBJS += $(OBJ)/cpu/m68000/asmintf.o $(OBJ)/cpu/m68000/68kem.o
  376. ASMDEFS += -DA68KEM
  377. $(OBJ)/cpu/m68000/68kem.o: $(OBJ)/cpu/m68000/68kem.asm make68k.c
  378. else
  379. M68000_GENERATED_OBJS = \
  380. $(OBJ)/cpu/m68000/m68kops.o $(OBJ)/cpu/m68000/m68kopac.o \
  381. $(OBJ)/cpu/m68000/m68kopdm.o $(OBJ)/cpu/m68000/m68kopnz.o
  382. CPUOBJS += $(M68000_GENERATED_OBJS) $(OBJ)/cpu/m68000/m68kcpu.o $(OBJ)/cpu/m68000/m68kmame.o
  383. endif
  384. DBGOBJS += $(OBJ)/cpu/m68000/d68k.o
  385. endif
  386.  
  387. CPU=$(strip $(findstring T11@,$(CPUS)))
  388. ifneq ($(CPU),)
  389. CPUDEFS += -DHAS_T11=1
  390. CPUOBJS += $(OBJ)/cpu/t11/t11.o
  391. DBGOBJS += $(OBJ)/cpu/t11/t11dasm.o
  392. $(OBJ)/cpu/t11/t11.o: t11.c t11.h t11ops.c t11table.c
  393. endif
  394.  
  395. CPU=$(strip $(findstring S2650@,$(CPUS)))
  396. ifneq ($(CPU),)
  397. CPUDEFS += -DHAS_S2650=1
  398. CPUOBJS += $(OBJ)/cpu/s2650/s2650.o
  399. DBGOBJS += $(OBJ)/cpu/s2650/2650dasm.o
  400. $(OBJ)/cpu/s2650/s2650.o: s2650.c s2650.h s2650cpu.h
  401. endif
  402.  
  403. CPU=$(strip $(findstring TMS34010@,$(CPUS)))
  404. ifneq ($(CPU),)
  405. CPUDEFS += -DHAS_TMS34010=1
  406. CPUOBJS += $(OBJ)/cpu/tms34010/tms34010.o $(OBJ)/cpu/tms34010/34010fld.o
  407. DBGOBJS += $(OBJ)/cpu/tms34010/34010dsm.o
  408. $(OBJ)/cpu/tms34010/tms34010.o: tms34010.c tms34010.h 34010ops.c 34010tbl.c
  409. endif
  410.  
  411. CPU=$(strip $(findstring TMS9900@,$(CPUS)))
  412. ifneq ($(CPU),)
  413. CPUDEFS += -DHAS_TMS9900=1
  414. CPUOBJS += $(OBJ)/cpu/tms9900/tms9900.o
  415. DBGOBJS += $(OBJ)/cpu/tms9900/9900dasm.o
  416. $(OBJ)/cpu/tms9900/tms9900.o: tms9900.c tms9900.h 99xxcore.h 9900stat.h
  417. endif
  418.  
  419. CPU=$(strip $(findstring TMS9940@,$(CPUS)))
  420. ifneq ($(CPU),)
  421. CPUDEFS += -DHAS_TMS9940=1
  422. CPUOBJS += $(OBJ)/cpu/tms9900/tms9900.o
  423. DBGOBJS += $(OBJ)/cpu/tms9900/9900dasm.o
  424. $(OBJ)/cpu/tms9900/tms9900.o: tms9900.c tms9900.h 99xxcore.h 9900stat.h
  425. endif
  426.  
  427. CPU=$(strip $(findstring TMS9980@,$(CPUS)))
  428. ifneq ($(CPU),)
  429. CPUDEFS += -DHAS_TMS9980=1
  430. CPUOBJS += $(OBJ)/cpu/tms9900/tms9980a.o
  431. DBGOBJS += $(OBJ)/cpu/tms9900/9900dasm.o
  432. $(OBJ)/cpu/tms9900/tms9980a.o: tms9980a.c tms9900.h 99xxcore.h 99xxstat.h
  433. endif
  434.  
  435. CPU=$(strip $(findstring TMS9985@,$(CPUS)))
  436. ifneq ($(CPU),)
  437. CPUDEFS += -DHAS_TMS9985=1
  438. CPUOBJS += $(OBJ)/cpu/tms9900/tms9980a.o
  439. DBGOBJS += $(OBJ)/cpu/tms9900/9900dasm.o
  440. $(OBJ)/cpu/tms9900/tms9980a.o: tms9980a.c tms9900.h 99xxcore.h 99xxstat.h
  441. endif
  442.  
  443. CPU=$(strip $(findstring TMS9989@,$(CPUS)))
  444. ifneq ($(CPU),)
  445. CPUDEFS += -DHAS_TMS9989=1
  446. CPUOBJS += $(OBJ)/cpu/tms9900/tms9980a.o
  447. DBGOBJS += $(OBJ)/cpu/tms9900/9900dasm.o
  448. $(OBJ)/cpu/tms9900/tms9980a.o: tms9980a.c tms9900.h 99xxcore.h 99xxstat.h
  449. endif
  450.  
  451. CPU=$(strip $(findstring TMS9995@,$(CPUS)))
  452. ifneq ($(CPU),)
  453. CPUDEFS += -DHAS_TMS9995=1
  454. CPUOBJS += $(OBJ)/cpu/tms9900/tms9995.o
  455. DBGOBJS += $(OBJ)/cpu/tms9900/9900dasm.o
  456. $(OBJ)/cpu/tms9900/tms9995.o: tms9995.c tms9900.h 99xxcore.h 99xxstat.h
  457. endif
  458.  
  459. CPU=$(strip $(findstring TMS99105A@,$(CPUS)))
  460. ifneq ($(CPU),)
  461. CPUDEFS += -DHAS_TMS99105A=1
  462. CPUOBJS += $(OBJ)/cpu/tms9900/tms9995.o
  463. DBGOBJS += $(OBJ)/cpu/tms9900/9900dasm.o
  464. $(OBJ)/cpu/tms9900/tms9995.o: tms9995.c tms9900.h 99xxcore.h 99xxstat.h
  465. endif
  466.  
  467. CPU=$(strip $(findstring TMS99105A@,$(CPUS)))
  468. ifneq ($(CPU),)
  469. CPUDEFS += -DHAS_TMS99105A=1
  470. CPUOBJS += $(OBJ)/cpu/tms9900/tms9995.o
  471. DBGOBJS += $(OBJ)/cpu/tms9900/9900dasm.o
  472. $(OBJ)/cpu/tms9900/tms9995.o: tms9995.c tms9900.h 99xxcore.h 99xxstat.h
  473. endif
  474.  
  475. CPU=$(strip $(findstring Z8000@,$(CPUS)))
  476. ifneq ($(CPU),)
  477. CPUDEFS += -DHAS_Z8000=1
  478. CPUOBJS += $(OBJ)/cpu/z8000/z8000.o
  479. DBGOBJS += $(OBJ)/cpu/z8000/8000dasm.o
  480. $(OBJ)/cpu/z8000/z8000.o: z8000.c z8000.h z8000cpu.h z8000dab.h z8000ops.c z8000tbl.c
  481. endif
  482.  
  483. CPU=$(strip $(findstring TMS320C10@,$(CPUS)))
  484. ifneq ($(CPU),)
  485. CPUDEFS += -DHAS_TMS320C10=1
  486. CPUOBJS += $(OBJ)/cpu/tms32010/tms32010.o
  487. DBGOBJS += $(OBJ)/cpu/tms32010/32010dsm.o
  488. $(OBJ)/cpu/tms32010/tms32010.o: tms32010.c tms32010.h
  489. endif
  490.  
  491. CPU=$(strip $(findstring CCPU@,$(CPUS)))
  492. ifneq ($(CPU),)
  493. CPUDEFS += -DHAS_CCPU=1
  494. CPUOBJS += $(OBJ)/cpu/ccpu/ccpu.o $(OBJ)/vidhrdw/cinemat.o
  495. DBGOBJS += $(OBJ)/cpu/ccpu/ccpudasm.o
  496. $(OBJ)/cpu/ccpu/ccpu.o: ccpu.c ccpu.h ccputabl.c
  497. endif
  498.  
  499. CPU=$(strip $(findstring ADSP2100@,$(CPUS)))
  500. ifneq ($(CPU),)
  501. CPUDEFS += -DHAS_ADSP2100=1
  502. CPUOBJS += $(OBJ)/cpu/adsp2100/adsp2100.o
  503. DBGOBJS += $(OBJ)/cpu/adsp2100/2100dasm.o
  504. $(OBJ)/cpu/adsp2100/adsp2100.o: adsp2100.c adsp2100.h 2100ops.c
  505. endif
  506.  
  507. CPU=$(strip $(findstring PDP1@,$(CPUS)))
  508. ifneq ($(CPU),)
  509. CPUDEFS += -DHAS_PDP1=1
  510. CPUOBJS += $(OBJ)/cpu/pdp1/pdp1.o
  511. DBGOBJS += $(OBJ)/cpu/pdp1/pdp1dasm.o
  512. $(OBJ)/cpu/pdp1/pdp1.o: pdp1.c pdp1.h
  513. endif
  514.  
  515.  
  516. CPU=$(strip $(findstring MIPS@,$(CPUS)))
  517. ifneq ($(CPU),)
  518. CPUDEFS += -DHAS_MIPS=1
  519. CPUOBJS += $(OBJ)/cpu/mips/mips.o
  520. DBGOBJS += $(OBJ)/cpu/mips/mipsdasm.o
  521. $(OBJ)/cpu/mips/mips.o: mips.c mips.h
  522. endif
  523.  
  524.  
  525. SOUND=$(strip $(findstring CUSTOM@,$(SOUNDS)))
  526. ifneq ($(SOUND),)
  527. SOUNDDEFS += -DHAS_CUSTOM=1
  528. endif
  529.  
  530. SOUND=$(strip $(findstring SAMPLES@,$(SOUNDS)))
  531. ifneq ($(SOUND),)
  532. SOUNDDEFS += -DHAS_SAMPLES=1
  533. SOUNDOBJS += $(OBJ)/sound/samples.o
  534. endif
  535.  
  536. SOUND=$(strip $(findstring DAC@,$(SOUNDS)))
  537. ifneq ($(SOUND),)
  538. SOUNDDEFS += -DHAS_DAC=1
  539. SOUNDOBJS += $(OBJ)/sound/dac.o
  540. endif
  541.  
  542. SOUND=$(strip $(findstring AY8910@,$(SOUNDS)))
  543. ifneq ($(SOUND),)
  544. SOUNDDEFS += -DHAS_AY8910=1
  545. SOUNDOBJS += $(OBJ)/sound/ay8910.o
  546. endif
  547.  
  548. SOUND=$(strip $(findstring YM2203@,$(SOUNDS)))
  549. ifneq ($(SOUND),)
  550. SOUNDDEFS += -DHAS_YM2203=1
  551. SOUNDOBJS += $(OBJ)/sound/2203intf.o $(OBJ)/sound/ay8910.o $(OBJ)/sound/fm.o
  552. endif
  553.  
  554. SOUND=$(strip $(findstring YM2151@,$(SOUNDS)))
  555. ifneq ($(SOUND),)
  556. SOUNDDEFS += -DHAS_YM2151=1
  557. SOUNDOBJS += $(OBJ)/sound/2151intf.o $(OBJ)/sound/ym2151.o $(OBJ)/sound/fm.o
  558. endif
  559.  
  560. SOUND=$(strip $(findstring YM2151_ALT@,$(SOUNDS)))
  561. ifneq ($(SOUND),)
  562. SOUNDDEFS += -DHAS_YM2151_ALT=1
  563. SOUNDOBJS += $(OBJ)/sound/2151intf.o $(OBJ)/sound/ym2151.o $(OBJ)/sound/fm.o
  564. endif
  565.  
  566. SOUND=$(strip $(findstring YM2608@,$(SOUNDS)))
  567. ifneq ($(SOUND),)
  568. SOUNDDEFS += -DHAS_YM2608=1
  569. SOUNDOBJS += $(OBJ)/sound/2608intf.o $(OBJ)/sound/ay8910.o $(OBJ)/sound/fm.o $(OBJ)/sound/ymdeltat.o
  570. endif
  571.  
  572. SOUND=$(strip $(findstring YM2610@,$(SOUNDS)))
  573. ifneq ($(SOUND),)
  574. SOUNDDEFS += -DHAS_YM2610=1
  575. SOUNDOBJS += $(OBJ)/sound/2610intf.o $(OBJ)/sound/ay8910.o $(OBJ)/sound/fm.o $(OBJ)/sound/ymdeltat.o
  576. endif
  577.  
  578. SOUND=$(strip $(findstring YM2610B@,$(SOUNDS)))
  579. ifneq ($(SOUND),)
  580. SOUNDDEFS += -DHAS_YM2610B=1
  581. SOUNDOBJS += $(OBJ)/sound/2610intf.o $(OBJ)/sound/ay8910.o $(OBJ)/sound/fm.o $(OBJ)/sound/ymdeltat.o
  582. endif
  583.  
  584. SOUND=$(strip $(findstring YM2612@,$(SOUNDS)))
  585. ifneq ($(SOUND),)
  586. SOUNDDEFS += -DHAS_YM2612=1
  587. SOUNDOBJS += $(OBJ)/sound/2612intf.o $(OBJ)/sound/ay8910.o $(OBJ)/sound/fm.o
  588. endif
  589.  
  590. SOUND=$(strip $(findstring YM3438@,$(SOUNDS)))
  591. ifneq ($(SOUND),)
  592. SOUNDDEFS += -DHAS_YM3438=1
  593. SOUNDOBJS += $(OBJ)/sound/2612intf.o $(OBJ)/sound/ay8910.o $(OBJ)/sound/fm.o
  594. endif
  595.  
  596. SOUND=$(strip $(findstring YM2413@,$(SOUNDS)))
  597. ifneq ($(SOUND),)
  598. SOUNDDEFS += -DHAS_YM2413=1
  599. SOUNDOBJS += $(OBJ)/sound/3812intf.o $(OBJ)/sound/ym2413.o $(OBJ)/sound/fmopl.o
  600. endif
  601.  
  602. SOUND=$(strip $(findstring YM3812@,$(SOUNDS)))
  603. ifneq ($(SOUND),)
  604. SOUNDDEFS += -DHAS_YM3812=1
  605. SOUNDOBJS += $(OBJ)/sound/3812intf.o $(OBJ)/sound/fmopl.o
  606. endif
  607.  
  608. SOUND=$(strip $(findstring YM3526@,$(SOUNDS)))
  609. ifneq ($(SOUND),)
  610. SOUNDDEFS += -DHAS_YM3526=1
  611. SOUNDOBJS += $(OBJ)/sound/3812intf.o $(OBJ)/sound/fmopl.o
  612. endif
  613.  
  614. SOUND=$(strip $(findstring Y8950@,$(SOUNDS)))
  615. ifneq ($(SOUND),)
  616. SOUNDDEFS += -DHAS_Y8950=1
  617. SOUNDOBJS += $(OBJ)/sound/3812intf.o $(OBJ)/sound/fmopl.o $(OBJ)/sound/ymdeltat.o
  618. endif
  619.  
  620. SOUND=$(strip $(findstring SN76477@,$(SOUNDS)))
  621. ifneq ($(SOUND),)
  622. SOUNDDEFS += -DHAS_SN76477=1
  623. SOUNDOBJS += $(OBJ)/sound/sn76477.o
  624. endif
  625.  
  626. SOUND=$(strip $(findstring SN76496@,$(SOUNDS)))
  627. ifneq ($(SOUND),)
  628. SOUNDDEFS += -DHAS_SN76496=1
  629. SOUNDOBJS += $(OBJ)/sound/sn76496.o
  630. endif
  631.  
  632. SOUND=$(strip $(findstring POKEY@,$(SOUNDS)))
  633. ifneq ($(SOUND),)
  634. SOUNDDEFS += -DHAS_POKEY=1
  635. SOUNDOBJS += $(OBJ)/sound/pokey.o
  636. endif
  637.  
  638. SOUND=$(strip $(findstring TIA@,$(SOUNDS)))
  639. ifneq ($(SOUND),)
  640. SOUNDDEFS += -DHAS_TIA=1
  641. SOUNDOBJS += $(OBJ)/sound/tiasound.o $(OBJ)/sound/tiaintf.o
  642. endif
  643.  
  644. SOUND=$(strip $(findstring NES@,$(SOUNDS)))
  645. ifneq ($(SOUND),)
  646. SOUNDDEFS += -DHAS_NES=1
  647. SOUNDOBJS += $(OBJ)/sound/nes_apu.o
  648. endif
  649.  
  650. SOUND=$(strip $(findstring ASTROCADE@,$(SOUNDS)))
  651. ifneq ($(SOUND),)
  652. SOUNDDEFS += -DHAS_ASTROCADE=1
  653. SOUNDOBJS += $(OBJ)/sound/astrocde.o
  654. endif
  655.  
  656. SOUND=$(strip $(findstring NAMCO@,$(SOUNDS)))
  657. ifneq ($(SOUND),)
  658. SOUNDDEFS += -DHAS_NAMCO=1
  659. SOUNDOBJS += $(OBJ)/sound/namco.o
  660. endif
  661.  
  662. SOUND=$(strip $(findstring TMS36XX@,$(SOUNDS)))
  663. ifneq ($(SOUND),)
  664. SOUNDDEFS += -DHAS_TMS36XX=1
  665. SOUNDOBJS += $(OBJ)/sound/tms36xx.o
  666. endif
  667.  
  668. SOUND=$(strip $(findstring TMS5220@,$(SOUNDS)))
  669. ifneq ($(SOUND),)
  670. SOUNDDEFS += -DHAS_TMS5220=1
  671. SOUNDOBJS += $(OBJ)/sound/tms5220.o $(OBJ)/sound/5220intf.o
  672. endif
  673.  
  674. SOUND=$(strip $(findstring VLM5030@,$(SOUNDS)))
  675. ifneq ($(SOUND),)
  676. SOUNDDEFS += -DHAS_VLM5030=1
  677. SOUNDOBJS += $(OBJ)/sound/vlm5030.o
  678. endif
  679.  
  680. SOUND=$(strip $(findstring ADPCM@,$(SOUNDS)))
  681. ifneq ($(SOUND),)
  682. SOUNDDEFS += -DHAS_ADPCM=1
  683. SOUNDOBJS += $(OBJ)/sound/adpcm.o
  684. endif
  685.  
  686. SOUND=$(strip $(findstring OKIM6295@,$(SOUNDS)))
  687. ifneq ($(SOUND),)
  688. SOUNDDEFS += -DHAS_OKIM6295=1
  689. SOUNDOBJS += $(OBJ)/sound/adpcm.o
  690. endif
  691.  
  692. SOUND=$(strip $(findstring MSM5205@,$(SOUNDS)))
  693. ifneq ($(SOUND),)
  694. SOUNDDEFS += -DHAS_MSM5205=1
  695. SOUNDOBJS += $(OBJ)/sound/msm5205.o
  696. endif
  697.  
  698. SOUND=$(strip $(findstring UPD7759@,$(SOUNDS)))
  699. ifneq ($(SOUND),)
  700. SOUNDDEFS += -DHAS_UPD7759=1
  701. SOUNDOBJS += $(OBJ)/sound/upd7759.o
  702. endif
  703.  
  704. SOUND=$(strip $(findstring HC55516@,$(SOUNDS)))
  705. ifneq ($(SOUND),)
  706. SOUNDDEFS += -DHAS_HC55516=1
  707. SOUNDOBJS += $(OBJ)/sound/hc55516.o
  708. endif
  709.  
  710. SOUND=$(strip $(findstring K005289@,$(SOUNDS)))
  711. ifneq ($(SOUND),)
  712. SOUNDDEFS += -DHAS_K005289=1
  713. SOUNDOBJS += $(OBJ)/sound/k005289.o
  714. endif
  715.  
  716. SOUND=$(strip $(findstring K007232@,$(SOUNDS)))
  717. ifneq ($(SOUND),)
  718. SOUNDDEFS += -DHAS_K007232=1
  719. SOUNDOBJS += $(OBJ)/sound/k007232.o
  720. endif
  721.  
  722. SOUND=$(strip $(findstring K051649@,$(SOUNDS)))
  723. ifneq ($(SOUND),)
  724. SOUNDDEFS += -DHAS_K051649=1
  725. SOUNDOBJS += $(OBJ)/sound/k051649.o
  726. endif
  727.  
  728. SOUND=$(strip $(findstring K053260@,$(SOUNDS)))
  729. ifneq ($(SOUND),)
  730. SOUNDDEFS += -DHAS_K053260=1
  731. SOUNDOBJS += $(OBJ)/sound/k053260.o
  732. endif
  733.  
  734. SOUND=$(strip $(findstring SEGAPCM@,$(SOUNDS)))
  735. ifneq ($(SOUND),)
  736. SOUNDDEFS += -DHAS_SEGAPCM=1
  737. SOUNDOBJS += $(OBJ)/sound/segapcm.o
  738. endif
  739.  
  740. SOUND=$(strip $(findstring RF5C68@,$(SOUNDS)))
  741. ifneq ($(SOUND),)
  742. SOUNDDEFS += -DHAS_RF5C68=1
  743. SOUNDOBJS += $(OBJ)/sound/rf5c68.o
  744. endif
  745.  
  746. SOUND=$(strip $(findstring CEM3394@,$(SOUNDS)))
  747. ifneq ($(SOUND),)
  748. SOUNDDEFS += -DHAS_CEM3394=1
  749. SOUNDOBJS += $(OBJ)/sound/cem3394.o
  750. endif
  751.  
  752. SOUND=$(strip $(findstring C140@,$(SOUNDS)))
  753. ifneq ($(SOUND),)
  754. SOUNDDEFS += -DHAS_C140=1
  755. SOUNDOBJS += $(OBJ)/sound/c140.o
  756. endif
  757.  
  758. SOUND=$(strip $(findstring QSOUND@,$(SOUNDS)))
  759. ifneq ($(SOUND),)
  760. SOUNDDEFS += -DHAS_QSOUND=1
  761. SOUNDOBJS += $(OBJ)/sound/qsound.o
  762. endif
  763.  
  764. SOUND=$(strip $(findstring SPEAKER@,$(SOUNDS)))
  765. ifneq ($(SOUND),)
  766. SOUNDDEFS += -DHAS_SPEAKER=1
  767. SOUNDOBJS += $(OBJ)/sound/speaker.o
  768. endif
  769.  
  770. SOUND=$(strip $(findstring WAVE@,$(SOUNDS)))
  771. ifneq ($(SOUND),)
  772. SOUNDDEFS += -DHAS_WAVE=1
  773. SOUNDOBJS += $(OBJ)/sound/wave.o
  774. endif
  775.  
  776.